package cn.lingyangwl.agile.infra.datamanage.mode.entity;

import cn.lingyangwl.agile.model.*;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import com.baomidou.mybatisplus.core.conditions.query.LambdaQueryWrapper;
import com.baomidou.mybatisplus.core.toolkit.Wrappers;
import lombok.AllArgsConstructor;
import lombok.Builder;
import lombok.Getter;
import lombok.Setter;
import lombok.experimental.Accessors;

/**
 * 数据集
 *
 * @author shenguangyang
 */
@Getter
@Setter
@Builder
@AllArgsConstructor
@Accessors(chain = true)
@TableName("infra_dataset")
public class Dataset extends BasePlusPO {
    @TableId
	private Long id;
	
	/**
	 * 表名称
	 */
	private String tableName;
	
	/**
	 * 表注释
	 */
	private String tableComment;
	
	/**
	 * 显示名称
	 */
	private String displayName;
	
	/**
	 * 数据源id
	 */
	private Long datasourceId;
	
	/**
	 * 组id
	 */
	private Long groupId;
	
	/**
	 * 是否被删除
	 */
	private Integer deleted;

	public Dataset(Long id) {
		this.id = id;
	}

	public Dataset() {
	}

	public static LambdaQueryWrapper<Dataset> lqw() {
		return Wrappers.lambdaQuery();
	}
}
